<!--
 * @Description: 
 * @Autor: zhangbing
 * @Date: 2021-07-28 20:53:08
 * @LastEditors: zhangbing
 * @LastEditTime: 2021-07-28 21:20:50
-->

<template>
  <button :action="action" @click="compute">{{ innerText }}</button>
</template>

<script>
export default {
  name: 'CounterButton',
  props: {
    action: String,
    innerText: String,
  },
  data () {
    return {

    }
  },
  created () {

  },
  mounted () {

  },
  methods: {
    compute() {
      this.$emit('dispatch', this.action)
    }
  }
}
</script>

<style>

</style>

